package cn.tedu.bonfire.admin.account.dao.persist.repository.impl;



import cn.tedu.bonfire.admin.account.dao.persist.mapper.NoteMapper;
import cn.tedu.bonfire.admin.account.dao.persist.repository.INoteRepostiory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class NoteRepositoryImpl implements INoteRepostiory {

    @Autowired
    private NoteMapper noteMapper;

    @Override
    public int deleteNoteStatus(Long noteId, Integer status) {
        return noteMapper.deleteNoteStatus(noteId,status);
    }

    @Override
    public List<Long> selectNoteById(Long userId) {
        return noteMapper.selectNoteById(userId);
    }
}
